﻿<%@ Page Language="C#" MasterPageFile="~/admin/admin_page.master" AutoEventWireup="true"
    CodeBehind="style_edit.aspx.cs" Inherits="YXShop.Web.admin.templates.style_edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />

    <script type="text/javascript" src="../../scripts/validate.js"></script>

    <script src="../scripts/public.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
    function getValue(value)
    {
        if(value!="") 
        {
            var oEditor = FCKeditorAPI.GetInstance("ctl00_workspace_txtContent");
            if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
            {
                oEditor.InsertHtml(value);
            }
            else
            {
                return false;
            }
        }
   }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
    添加风格
    <asp:Button ID="button6" runat="server" CssClass="inputbutton"
        Text="保  存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" onclick="button2_Click" />
    <asp:HyperLink ID="returnLink" runat="server" CssClass="inputbutton" Width="65px"
        Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" NavigateUrl="~/admin/templates/template.aspx">返回列表</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">
    添加或编辑模&nbsp;
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
    <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
		    <td class="form_table_input_info">模板名称：</td>
		    <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtNameTip" runat="server"></asp:Panel>
            </td>
	    </tr>
        <tr>
		    <td class="form_table_input_info">模板图样：
            </td>
		    <td>
                <asp:FileUpload ID="fuImages" runat="server" />
            </td>
		    <td>
                <div class="msgNormal">上传该模板整体风格的图样。</div>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">上传模板：
            </td>
		    <td>
                <asp:FileUpload ID="fuTemplate" runat="server" />
            </td>
		    <td>
                <div class="msgNormal">上传模板压缩包。</div>
            </td>
	    </tr>
    </table>
</asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    <asp:Button ID="button2" runat="server" CssClass="inputbutton"
        Text="保  存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" 
        onclick="button2_Click" />
    <asp:HyperLink ID="HyperLink1" runat="server" CssClass="inputbutton" Width="65px"
        Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'" NavigateUrl="~/admin/templates/template.aspx">返回列表</asp:HyperLink>
</asp:Content>
